package utiles;

import java.util.Calendar;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: barrioss
 * Date: Dec 28, 2006
 * Time: 4:56:38 PM
 * To change this template use File | Settings | File Templates.
 */
public class utilitarios {


  public static String getHoraActual(){
    Date hoy = new Date();
    String hora = String.valueOf(hoy.getHours());
    String minuto = String.valueOf(hoy.getMinutes());
    String horaSystema = hora+":"+minuto;

  return horaSystema;
 }

 
 public static String getFechaHoraActual(){ //dmah 	
	    Calendar ahoraCal = Calendar.getInstance();
	    String fechaHoraActual = String.valueOf(ahoraCal.get(Calendar.DATE)) + String.valueOf(ahoraCal.get(Calendar.MONTH)+1)+ String.valueOf(ahoraCal.get(Calendar.YEAR)) + String.valueOf(ahoraCal.get(Calendar.HOUR));
	      return fechaHoraActual;
}


}
